package dome2;

public class Person {
    private String name;
    private int age;
    public Person(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println("父类构造方法被执行了......");
    }
    static{
        System.out.println("父类静态代码块被执行了......");
    }
    {
        System.out.println("父类实例代码块被执行了......");
    }
    static void methodA(){
        System.out.println("父类静态方法被执行了......");
    }
    public void testPerson(){
        System.out.println("父类成员方法被执行了......");
    }
}
